package com.medical.acc.mapper;


import com.medical.acc.model.PeopleOrganizationMap;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface PeopleOrganizationMapMapper {

	//查询全部
	List<PeopleOrganizationMap> selectAll();
	//根据peopleId查询用户
	PeopleOrganizationMap selectByPeopleId(String peopleId);
	//根据organizationId查询用户
	List<PeopleOrganizationMap> selectByOrganizationId(String organizationId);
	//根据peopleId和organizationId查询用户
	List<PeopleOrganizationMap> selectByPeopleIdAndOrganizationId(String peopleId, String organizationId);
	//添加用户
	void insertPeopleOrganizationMap(PeopleOrganizationMap peopleOrganizationMap);
	//删除
	int deleteByPrimaryKey(String peopleId);
	//更新
	int updateByPrimaryKey(PeopleOrganizationMap peopleOrganizationMap);

}
